package com.njtoyo.taxi.admin.rest.wrapper.business.driver.system_message;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.mapper.master.entity.DriverNotifySystemMessageTrigger;
import com.njtoyo.taxi.admin.mapper.master.enums.DriverSystemMessageCategory;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Objects;

@Data
@ApiModel(value = "获取司机系统消息列表")
public class ListWrapper extends Page<DriverNotifySystemMessageTrigger> {

    public ListWrapper(Long current, Long size) {
        super(Objects.isNull(current) ? 1 : current, Objects.isNull(size) ? 15 : size);
    }

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("类型")
    private DriverSystemMessageCategory category;
}
